package com.dk.vo.order;

import com.dk.jwzx.bean.Teacher;
import com.dk.pojo.Tag;

import java.util.List;

public class OrderInfo {
    private String id;
    private Class subject;
    private Teacher teacher;
    private double price;
    private String remark;
    private List<Tag> tags;
    private User customer;
    private User receiver;
    private int state;

    public OrderInfo(){
        this.customer=new User();
        this.subject=new Class();
        this.teacher=new Teacher();
    }

    @Override
    public String toString() {
        return "OrderInfo{" +
                "id='" + id + '\'' +
                ", subject=" + subject +
                ", teacher=" + teacher +
                ", price=" + price +
                ", remark='" + remark + '\'' +
                ", tags=" + tags +
                ", customer=" + customer +
                ", receiver=" + receiver +
                ", state=" + state +
                '}';
    }

    public void setReceiver(User receiver) {
        this.receiver = receiver;
    }

    public List<Tag> getTags() {
        return tags;
    }

    public void setTags(List<Tag> tags) {
        this.tags = tags;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Class getSubject() {
        return subject;
    }

    public void setSubject(Class subject) {
        this.subject = subject;
    }

    public Teacher getTeacher() {
        return teacher;
    }

    public void setTeacher(Teacher teacher) {
        this.teacher = teacher;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public User getCustomer() {
        return customer;
    }

    public User getReceiver() {
        return receiver;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public static class User{
        private String id;
        private String avatarUrl;
        private String name;
        private String stuId;
        private String major;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getAvatarUrl() {
            return avatarUrl;
        }

        public void setAvatarUrl(String avatarUrl) {
            this.avatarUrl = avatarUrl;
        }

        public String getStuId() {
            return stuId;
        }

        public void setStuId(String stuId) {
            this.stuId = stuId;
        }

        public String getMajor() {
            return major;
        }

        public void setMajor(String major) {
            this.major = major;
        }
    }

    public static class Class {
        private String id;
        private String name;
        private String address;
        private int day;
        private int[] time;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getAddress() {
            return address;
        }

        public void setAddress(String address) {
            this.address = address;
        }

        public int getDay() {
            return day;
        }

        public void setDay(int day) {
            this.day = day;
        }

        public int[] getTime() {
            return time;
        }

        public void setTime(int[] time) {
            this.time = time;
        }
    }

}
